<h1><%=@employee.name %></h1>
<% form_for :leave, @leave_employee, 
:url => { :controller => 'employee', :action => "create_leave", :id => @leave_employee } do  %>
  <p>
 
    <%=collection_select(:leave_employee, :leave_type_id,@leave_types, :id,:title, {:prompt => true })%>
  </p>
  <p>
    Description : <br />
    <%= text_area :leave_employee, :description %>
  </p>
  <p>
    Total Leave:<br />
    <%= text_field :leave_employee, :total  %>
  </p>
  <p>
    <%= submit_tag 'Create' %>
  </p>
<% end %>